import { IS_GROUP } from "@/store/mutation-types"

const hasPermission = {
    install (Vue, options) {
        console.log(options);
          Vue.directive('isGroup', {
            inserted: (el, binding, vnode)=>{
              let isGroup = sessionStorage.getItem(IS_GROUP);
              if (isGroup == 1){
                return true
              } else {
                el.parentNode.removeChild(el);
                return false
              }
            }
          });
    }
};


export default hasPermission;
